h=askstarthistory(:,1);
h2=askstarthistory(:,2);
t=askhistory(:,2);


h3=askstarthistory2(:,1);
h4=askstarthistory2(:,2);
t2=askhistory2(:,2);
l=[length(h),length(h2),length(t),length(h4),length(h3),length(t2)];
m=1000;
for i=1:length(l)
    if(m>l(i))
        m=l(i);
    end
end
h=[h(1:m);];
h2=[h2(1:m)];
t=[t(1:m)];
h3=[h3(1:m)];
h4=[h4(1:m)];
t2=[t2(1:m)];

table=[ h h2 t h3 h4 t2 ];
path1=string(loop)+'.xlsx';
xlswrite(char(path1),table);
